Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed default log file to ~/.odilia.log #151

Merged
merged 5 commits into from
May 29, 2024

Conversation

petrovvvv
Copy link
Contributor

No description provided.

@TTWNO
Copy link
Member

TTWNO commented May 28, 2024

Please use $XDG_DATA_HOME/odilia/odilia.log you can get this with env::var; if this is not avaulable, feel free to make it $HOME/.local/share/odilia/odilia.log if the XDG var is not set.

@petrovvvv
Copy link
Contributor Author

Fixed.

"unable to find the odilia config directory according to the xdg dirs specification",
);
let log_path = xdg_dirs
.place_data_file("odilia.log")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.place_data_file("odilia.log")
.place_state_file("odilia.log")

@petrovvvv
Copy link
Contributor Author

I implemented the suggested change. Not 100% if I fixed the formatting, but I ran cargo fmt and clippy.

@albertotirla albertotirla merged commit f944d9d into odilia-app:main May 29, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants